package cqut.wys;

import cqut.wys.service.HelloService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ImportResource;

/**
 * Hello world!
 *
 */
@SpringBootApplication
@ImportResource({"classpath:dubbo-consumer.xml"})
public class App
{
    public static void main( String[] args )
    {
        ApplicationContext ctx = SpringApplication.run(App.class,args);
        HelloService helloService = (HelloService) ctx.getBean("helloService");
        System.out.println(helloService.getHello("World"));
        System.out.println( "Hello World!" );
    }
}
